package model.model02.demo03.strategy;

import com.model.model02.demo03.strategy.abs.Strategy;

public class CashRebate extends Strategy {

    private double moneyRebate = 1;

    public CashRebate(double moneyRebate) {
        this.moneyRebate = moneyRebate;
    }

    @Override
    public double AlgorithmInterface(double money) {
        return money * moneyRebate;
    }
}
